package com.tecniplast.selene.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.tecniplast.selene.dao.CommonDao;
import com.tecniplast.selene.pojo.AppInface;
import com.tecniplast.selene.pojo.AppInfo;
import com.tecniplast.selene.pojo.Syscode;
import com.tecniplast.selene.service.CommonService;

@Service("commonService") 
public class CommonServiceImpl implements CommonService {
	@Resource
	 private CommonDao commonDao;
	 
	/**
	 输入返回结果
	 */
	@Override
	public List<Syscode> initSyscodeData() {
		return commonDao.queryAllSysCode();
	}

	@Override
	public List<AppInfo> initAppData() {
		return commonDao.queryAllAppInfo();
	}

	@Override
	public List<AppInface> initAppInfData() {
		return commonDao.queryAllAppInface();
	}

	@Override
	public void saveToken(String token) {
		commonDao.saveToken(token);
	}
	
	
}
